'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    /**
     * Add seed commands here.
     *
     * Example:
     * await queryInterface.bulkInsert('People', [{
     *   name: 'John Doe',
     *   isBetaMember: false
     * }], {});
    */

    await queryInterface.bulkInsert('Users', [
      {
        name: 'SilverHand',
        account:'2021150377',//账户 即学号
        password:'123456',
        role:1,//权限，1为管理员，2为普通用户
        createdAt:new Date(),
        updatedAt:new Date(),
      },
      {
        name: 'SunFly',
        account:'2021150378',//账户 即学号
        password:'123456',
        role:2,//权限，1为管理员，2为普通用户
        createdAt:new Date(),
        updatedAt:new Date(),
      },
      {
        name: 'SwordArt',
        account:'2021150398',//账户 即学号
        password:'123456',
        role:2,//权限，1为管理员，2为普通用户
        createdAt:new Date(),
        updatedAt:new Date(),
      },
      
    ], {});

  },

  async down (queryInterface, Sequelize) {
    /**
     * Add commands to revert seed here.
     *
     * Example:
     * await queryInterface.bulkDelete('People', null, {});
     */
  }
};
